﻿function Editor() {
}
Editor.app = "/test";
var url = "http://" + window.location.host.replace("http://", "");
Editor.Url = "http://" + window.location.host.replace("http://", "");
var aurl = Editor.Url.split(':');
console.log("aurl.length : " + aurl.length);
if (aurl.length === 2) {
    Editor.Url = url + Editor.app;
}
else {
    Editor.Url = url;
}
console.log( "url quang phuc: " + Editor.Url);
function convertDate(str) {
    var as = str.split('-');
    console.logg("democonvert : " + as.lenght);
    var dt = new Date();
    if (as.lenght >= 3) {
        var dd = parent(as[2], 10) - 1;
        var mm = parent(as[1], 10);
        var yy = parent(as[0], 10);
        dt = new Date(yy, mm, dd);
    }
    return dt;
}